package com.example.wheresdu_test;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ImageButton;
import android.view.View;
import android.content.Intent;


public class MainActivity1 extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main1);
		  final ImageButton imageButton4 = (ImageButton) findViewById(R.id.imageButton4);
		  final ImageButton imageButton2 = (ImageButton) findViewById(R.id.imageButton2);
		  final ImageButton imageButton3 = (ImageButton) findViewById(R.id.imageButton3);
		  
          imageButton4.setOnClickListener(new View.OnClickListener() {
                 public void onClick(View v) {
                       
       Intent i = new Intent(MainActivity1.this, MainActivity2.class);
                
        
       startActivity(i);// 


       finish();//

                 }
          });
          imageButton2.setOnClickListener(new View.OnClickListener() {
              public void onClick(View v) {
                    
    Intent i = new Intent(MainActivity1.this, MainActivity3.class);
             
     
    startActivity(i);// 


    finish();//

              }
       });
          
          imageButton3.setOnClickListener(new View.OnClickListener() {
              public void onClick(View v) {
                    
    Intent i = new Intent(MainActivity1.this, MainActivity4.class);
             
     
    startActivity(i);// 


    finish();//

              }
       });
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main_activity1, menu);
		return true;
	}

}
